﻿<%@ Page Language="C#" MasterPageFile="~/Themes/ContentPage.master" %>

<script runat="server">
    protected override void OnLoad(EventArgs e)
    {
        base.OnLoad(e);
        links.BuilderLinkUrlHandler += new Func<object, string>(links_BuilderLinkUrlHandler);
    }

    string links_BuilderLinkUrlHandler(object arg)
    {
        LinkInfo link=arg as LinkInfo;
        if(arg==null)
            return string.Empty;

        return link.Url;
    }
</script>

<asp:Content ID="content" ContentPlaceHolderID="mainContent" Runat="Server">
    <script language="javascript" type="text/javascript">
        $(function () {
            $(".link_box a").attr("target","_blank");
        });
    </script>
    <div class="link_box">
        <lswweb:LinkList ID="links" ItemId="0" IsRenderTag="false" EnableAspNetPager="false" runat="server">
            <Skin>
                <asp:Repeater ID="gridView" runat="server">
                    <ItemTemplate>
                        <a href='<%# Eval("Url") %>' target="_blank">
                            <img src='<%# Eval("ImageUrl") %>' alt="<%# Eval("Title") %>" /></a>
                    </ItemTemplate>
                </asp:Repeater>
            </Skin>
        </lswweb:LinkList>
    </div>
</asp:Content>
